bitkeeper revision 1.160.2.1 (3e9404cdSqybQBuNBFNyXk6bQWczUw)
authorjws@cairnwell.research <jws@cairnwell.research>
Wed, 9 Apr 2003 11:32:29 +0000 (11:32 +0000)
committerjws@cairnwell.research <jws@cairnwell.research>
Wed, 9 Apr 2003 11:32:29 +0000 (11:32 +0000)
ioremap fix

xen/arch/i386/ioremap.c

index 717c69c9805752e27c19b2489dd3d04d358f5d9a..8487c535fbbd3f0fb178ce93a68308406aedcef2 100644 (file)
@@ -50,7 +50,7 @@ void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flag
     if (phys_addr >= 0xA0000 && last_addr < 0x100000)
         return phys_to_virt(phys_addr);
 
-    if(remap_base + size > IOREMAP_VIRT_END) {
+    if(remap_base + size > IOREMAP_VIRT_END-1) {
       printk("ioremap: going past end of reserved space!\n");
       return NULL;
     }